namespace Jumpton.SFA.Server.Entity
{
    using System;
    using System.Collections.Generic;
    using System.Text;
    using Jumpton.Persistent;
    using System.Data;


    [Map("CPR_Config")]
    public class CPR_Config : ObjectRow
    {

        public CPR_Config()
        {
        }

        /// <summary>
        /// 构造函数
        /// </summary>
        /// <param name="dataRow">DataTable 中的一行数据</param>
        /// <param name="objectTable">存储当前对象的数据表格</param>
        public CPR_Config(System.Data.DataRow dataRow, ObjectTable parent) :
            base(dataRow, parent)
        {
        }

        [Key("ID", true, true)]
        public decimal ID
        {
            get
            {
                return (System.Decimal)GetValue("ID");
            }
            set
            {
                SetValue("ID", value);
            }
        }

        [Field("MEASUREMENTNAME")]
        public string MeasurementName
        {
            get
            {
                return (System.String)GetValue("MeasurementName");
            }
            set
            {
                SetValue("MeasurementName", value);
            }
        }
        [Field("CODE")]
        public string CODE
        {
            get
            {
                return (System.String)GetValue("CODE");
            }
            set
            {
                SetValue("CODE", value);
            }
        }
        [Field("VALUETYPE")]
        public string ValueType
        {
            get {
                return (System.String)GetValue("ValueType");
            }
            set
            {
                SetValue("ValueType", value);
            }
        }

        [Field("INPUTTYPE")]
        public int InputType
        {
            get
            {
                return (System.Int32)GetValue("InputType");
            }
            set
            {
                SetValue("InputType", value);
            }
        }

        [Field("SEQUENCE")]
        public int Sequence
        {
            get
            {
                return (System.Int32)GetValue("Sequence");
            }
            set
            {
                SetValue("Sequence", value);
            }
        }

        [Field("TABLENAME")]
        public string TableName
        {
            get
            {
                return (System.String)GetValue("TableName");
            }
            set
            {
                SetValue("TableName", value);
            }
        }

        [Field("LASTTIMETABLENAME")]
        public string LASTTIMETABLENAME
        {
            get
            {
                return (System.String)GetValue("LASTTIMETABLENAME");
            }
            set
            {
                SetValue("LASTTIMETABLENAME", value);
            }
        }

        [Field("ACTIVE")]
        public bool ACTIVE
        {
            get
            {
                return (System.Boolean)GetValue("ACTIVE");
            }
            set
            {
                SetValue("ACTIVE", value);
            }
        }

        [Field("PDAType")]
        public bool PDAType
        {
            get
            {
                return (System.Boolean)GetValue("PDAType");
            }
            set
            {
                SetValue("PDAType", value);
            }
        }

        [Field("LAST_UPDATE_TIME")]
        public decimal LAST_UPDATE_TIME
        {
            get
            {
                return (System.Decimal)GetValue("LAST_UPDATE_TIME");
            }
            set
            {
                SetValue("LAST_UPDATE_TIME", value);
            }
        }

        [Field("LAST_UPDATER")]
        public string LAST_UPDATER
        {
            get
            {
                return (System.String)GetValue("LAST_UPDATER");
            }
            set
            {
                SetValue("LAST_UPDATER", value);
            }
        }

        [Field("DOMAIN_ID")]
        public decimal DomainID
        {
            get
            {
                return (System.Decimal)GetValue("DomainID");
            }
            set
            {
                SetValue("DomainID", value);
            }
        }

        [Field("CREATE_TIME")]
        public decimal CREATETIME
        {
            get
            {
                return (System.Decimal)GetValue("CREATETIME");
            }
            set
            {
                SetValue("CREATETIME", value);
            }
        }
    }
}
